package com.dynabook.ems.model.dto;

import com.dynabook.ems.common.PageRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * 根据BOM号查询工单请求DTO
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "根据BOM号查询工单请求", description = "根据BOM号查询关联工单信息的请求参数")
public class WorkOrderByBomNumRequest extends PageRequest {
    
    /**
     * BOM编号
     */
    @ApiModelProperty(value = "BOMID", required = true, example = "1952907622165733377")
    @NotBlank(message = "BOMID不能为空")
    private String bomId;
    
    /**
     * 工单号（可选）
     */
    @ApiModelProperty(value = "工单号", required = false, example = "M25060001")
    private String workOrderNum;
}